#include <iostream>
#include <string>
#include <QWidget>
#include <QObject>
#include <QDialog>
#include <QStringListModel>

//the generated ui file here
#include "addpoldialog.h"
#include "db.h"

class UiAddPol : public QDialog,public Ui::DialogAddPol{
   
    Q_OBJECT

    public slots:
        void changePolicyDrop(int);

    private:
        bool validPersonData;

    public:
        void initializeDialogData();
        UiAddPol(QWidget *parent=0) :  QDialog(parent){
            //call the stuff you need
            setupUi(this);
            initializeDialogData();
            
            connect(comboPolicy, SIGNAL(currentIndexChanged (int) ), this, SLOT(changePolicyDrop(int)));
    
                   }
};


